package com.buddies.lottery.data.bean;

import com.buddies.lottery.ui.lottery.detail.LotteryTabOptionsAdapter;
import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.io.Serializable;
import java.util.List;

public class LotteryTabOptions implements Serializable, MultiItemEntity {

    public int id;
    public String name;
    public String odds;
    public List<String> nums;

    public List<LotteryTabOptions> options;

    public LotteryTabOptions parent;

    @Override
    public int getItemType() {
        return options != null ? LotteryTabOptionsAdapter.TAB_HEADER : LotteryTabOptionsAdapter.TAB_OPTION;
    }

    public String getBetId(int tabId) {
        return tabId + "_" + parent.id + "_" + id;
    }

}
